<!DOCTYPE html>

<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>商品</title>
</head>
<body>
<div style="text-align: center">
    <img th:src="${commodity.getAvatar1()}" class="img-size" alt="图片">
    <br><label th:text="${commodity.name}"></label>
    <br><label th:text="${commodity.introduce}"></label>
    <br><label th:text="${commodity.price}"></label>

    <form th:action="@{'/buy?cid='+${commodity.id}+'&uid='+${uid}}" method="post" class="login-form">
        <div class="form-item">
            <button type="submit" class="btn btn-primary login-submit">下单</button>
        </div>
    </form>
</div>
</body>
</html>